import { VComponent } from './framework';

export class List extends VComponent {
  private children;
  private template;

  render() {
    this.children = this.attributes.data.map(this.template);
    this.root = (<div>{this.children}</div>).render();
    return this.root;
  }

  appendChild(child: VComponent) {
    this.template = (child);
  }
}
